/*
 * KKTime.h
 *
 *  Created on: 2013-9-15
 *      Author: wanghua
 */

#ifndef KKTIME_H_
#define KKTIME_H_
#include <sys/timeb.h>

using namespace std;

class KKTime {

private:
	static timeb startupTime;

public:
	int year;
	int month;
	int day;
	int weekday;
	int hour;
	int minute;
	int second;
	int mill_second;

public:
	KKTime();
	virtual ~KKTime();
	static long int getSystemTime();
	static long int getSystemMillTime();
	static void initStarupTime();
	static long int getStartupTime();
	static KKTime getCurrentTime();

	const char* format();
};

#endif /* KKTIME_H_ */
